home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / cert_advisories / CA-93:03.SunOS.Permissions.vulnerability < prev    next >
Encoding:
Text File  |  1993-02-03  |  5.0 KB  |  120 lines

  1. -----------------------------------------------------------------------------
  2. CA-93:03                         CERT Advisory
  3.                                February 3, 1993
  4.                        SunOS File/Directory Permissions
  5. -----------------------------------------------------------------------------
  6.  
  7. The default permissions on a number of files and directories in SunOS
  8. 4.1, 4.1.1, 4.1.2, and 4.1.3 are set incorrectly.  These problems are
  9. relevant for the sun3, sun3x, sun4, sun4c, and sun4m architectures.
  10. They have been fixed in SunOS 5.0.  (Note that SunOS 5.0 is the operating
  11. system included in the Solaris 2.0 software distribution.)
  12.  
  13. An updated patch to reset these permissions is available from Sun.
  14. CERT has seen an increasing number of attackers exploit these problems
  15. on systems and we encourage sites to consider installing this patch.
  16.  
  17. -----------------------------------------------------------------------------
  18.  
  19. I.   Description
  20.  
  21.      File permissions on numerous files were set incorrectly in the
  22.      distribution tape of 4.1.x.  A typical example is that a file which
  23.      should have been owned by "root" was set to be owned by "bin".
  24.  
  25.      Not all sites will need or want to install the patch for this problem.
  26.      The decision of what user id should own most system files and
  27.      directories depends on the administrative practices of the site.
  28.      It is quite reasonable to run a system where the majority
  29.      of files are owned by "bin" as long as the entire system is run in
  30.      a manner consistent with that practice.  As distributed, the SunOS
  31.      configuration expects most system files to be owned by "root".
  32.      The fact that some are not creates security problems.
  33.  
  34.      Therefore, sites that are running the SunOS versions listed above
  35.      as distributed should install the patch described below.
  36.      Sites that have made an informed choice to configure their system
  37.      differently may instead want to review the patch script and
  38.      consider which, if any, of the changes should be made on their system.
  39.  
  40. II.  Impact
  41.  
  42.      Depending on the specific configuration of the local site,
  43.      the default permissions may allow local users to gain "root" access.
  44.  
  45. III. Solution
  46.  
  47.      1) Sun has provided a script to reset file and directory permissions
  48.         to their correct values.  The script is available in Sun's
  49.     Patch #100103 version 11.  This patch can be obtained via
  50.     local Sun Answer Centers worldwide as well as through
  51.     anonymous FTP from the ftp.uu.net (137.39.1.9) system
  52.     in the /systems/sun/sun-dist directory.
  53.  
  54.               Patch ID     Filename             Checksum
  55.               100103-11    100103-11.tar.Z      19847   6
  56.  
  57.         Please note that Sun Microsystems sometimes updates patch files.
  58.         If you find that the checksum is different please contact
  59.         Sun Microsystems or CERT for verification.
  60.  
  61.      2) Uncompress the file, extract the contents of the tar archive,
  62.         and review the README file.
  63.  
  64.              % uncompress 100103-11.tar.Z
  65.              % tar xfv 100103-11.tar
  66.              % cat README
  67.  
  68.      3) This patch will reset the group ownership of certain files to
  69.         either "staff" or "bin".  Make sure you have entries in
  70.         the "/etc/group" file for these accounts.
  71.  
  72.              % grep '^staff:' /etc/group
  73.              % grep '^bin:' /etc/group
  74.         
  75.         If you do not have both of these you will need to either add the
  76.         missing account(s) or modify the patch script (4.1secure.sh)
  77.         to reflect group ownerships appropriate for your site.
  78.         (Note that the security problems are fixed by the ownerships and
  79.         mode bits specified in the patch - not by the group ownerships.
  80.         Therefore, changing the group ownerships does not invalidate
  81.         the patch.)
  82.  
  83.      4) As "root", run the patch script.
  84.  
  85.               # sh 4.1secure.sh
  86.  
  87.         This patch fixes Sun BugId's 1046817, 1047044, 1048142, 1054480,
  88.     1037153, 1039292, and 1042662.
  89.  
  90.      5) The patch script will set "/usr/kvm/crash" to mode 02700 owned
  91.         by "root".  While this is not insecure, since only "root" can run
  92.     the program, CERT recommends that the setgid bit be removed to
  93.     prevent abuse if world execute permission were to be added
  94.     some time later.
  95.     
  96.     As "root", make "/usr/kvm/crash" not a set-group-id program.
  97.  
  98.              # chmod 755 /usr/kvm/crash
  99.  
  100. ---------------------------------------------------------------------------
  101.  
  102. If you believe that your system has been compromised, contact the CERT
  103. Coordination Center or your representative in FIRST (Forum of Incident
  104. Response and Security Teams).
  105.  
  106. Internet E-mail: cert@cert.org
  107. Telephone: 412-268-7090 (24-hour hotline)
  108.            CERT personnel answer 7:30 a.m.-6:00 p.m. EST(GMT-5)/EDT(GMT-4),
  109.            on call for emergencies during other hours.
  110.  
  111. CERT Coordination Center
  112. Software Engineering Institute
  113. Carnegie Mellon University
  114. Pittsburgh, PA 15213-3890
  115.  
  116. Past advisories, information about FIRST representatives, and other
  117. information related to computer security are available for anonymous FTP
  118. from cert.org (192.88.209.5).
  119.  
  120.